//
//  InformationButton.m
//  DA_V
//
//  Created by 中亿世联前台 on 15/5/8.
//  Copyright (c) 2015年 zhouhai. All rights reserved.
//

#import "InformationButton.h"
#import "UIViewAdditions.h"
#import "InterFace.h"

@implementation InformationButton

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (instancetype) initWithFrame:(CGRect)frame{
    
    self = [super initWithFrame:frame];
    if (self) {
        self.informationNum = [[UILabel alloc]initWithFrame:CGRectMake(self.frame.size.width-10, -7.5, 15, 15)];
        self.informationNum.font = [UIFont fontWithName:nil size:10];
        self.informationNum.layer.borderWidth = 1.0;
        self.informationNum.layer.borderColor = DaoHangColor.CGColor;
        self.informationNum.layer.masksToBounds = YES;
        self.informationNum.layer.cornerRadius = 15/2;
        self.informationNum.textAlignment = NSTextAlignmentCenter;
        self.informationNum.backgroundColor = [UIColor whiteColor];
        self.informationNum.textColor = DaoHangColor;
        self.informationNum.hidden = YES;
        [self addSubview:self.informationNum];
        
    }
    return self;
}



@end
